package edu.ubbcs.rs.backend.model.room;

import edu.ubbcs.rs.backend.model.Reservation;
import edu.ubbcs.rs.backend.model.table.CombinedTable;
import edu.ubbcs.rs.backend.model.table.Table;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author Merli Andras-Bertalan
 * @version 1.0
 * @created 09-jan.-2015 15:37:45
 */
public class WeddingRoomDecorator extends RoomDecorator {
    public WeddingRoomDecorator(Room room) {
        super(room);
        List<Table> tables = new ArrayList<>(1);
        tables.add(new CombinedTable(room.getTables()));
        room.setTables(tables);
//        room 
    }

    @Override
    public boolean isReserved(Table table) {
        return room.isReserved(table);
    }
    
    @Override
    public List<Table> getTables() {
        return room.getTables();
    }

    @Override
    public void setTables(List<Table> tables) {
        room.setTables(tables);
    }

    @Override
    public List<Reservation> getReservations() {
        return room.getReservations();
    }

    @Override
    public void setReservations(List<Reservation> reservations) {
        room.setReservations(reservations);
    }

    @Override
    public void reserve(Reservation reservation, Table table) {
        room.reserve(reservation, table);
    }

    @Override
    public Date getDate() {
        return room.getDate();
    }

    @Override
    public Integer getHour() {
        return room.getHour();
    }
}
